'use strict';
 
function get_intersection(collection_b, collection_a) {
 let collection=[];
  for(let i=0;i<collection_a.length;i++)
  {
    for(let j=0;j<collection_b.length;j++)
      {
        if(collection_a[i]==collection_b[j])
          {
            collection.push(collection_a[i])
          }
      }
  }
  return collection;
}

module.exports = get_intersection;
